package a.f.l.a;

import a.i.l;

import java.util.Comparator;
import java.util.Iterator;
import java.util.List;

class oc
{
  private static final double a = 1.0E-006D;
  private static final int b = 4096;
  private g c = new g(4096, new Comparator()
  {
    public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
    {
      oc.b_ localb_1 = (oc.b_)paramAnonymousObject1;
      oc.b_ localb_2 = (oc.b_)paramAnonymousObject2;
      if (!sb.e) {
        if (Math.abs(localb_1.a - localb_2.a) < 1.0E-006D) {
          return l.a(localb_2.c, localb_1.c);
        }
      }
      return l.a(localb_1.a, localb_2.a);
    }
  });
  private int d;
  
  public void a(h paramh, double paramDouble)
  {
    g.a_ locala_ = this.c.a(new b_(paramDouble, this.d++, null), paramh);
    paramh.i = locala_;
  }
  
  public boolean a()
  {
    return this.c.d();
  }
  
  public boolean a(h paramh)
  {
    return paramh.i != null;
  }
  
  public void b(h paramh)
  {
    this.c.a(paramh.i);
    paramh.i = null;
  }
  
  public h b()
  {
    g.a_ locala_ = this.c.c();
    this.c.a(locala_);
    h localh = (h)locala_.a;
    localh.i = null;
    return localh;
  }
  
  public h c()
  {
    g.a_ locala_ = this.c.c();
    return (h)locala_.a;
  }
  
  public void b(h paramh, double paramDouble)
  {
    this.c.b(paramh.i, new b_(paramDouble, this.d++, null));
  }
  
  public void e()
  {
    boolean bool = sb.e;
    int i = sb.d;
    Iterator localIterator = h().iterator();
    if (localIterator.hasNext()) {}
    while (bool)
    {
      h localh = (h)localIterator.next();
      localh.i = null;
      localh.a(false);
      if ((!bool) && (i != 0)) {
        return;
      }
      if (i == 0) {
        break;
      }
    }
    this.c.b();
  }
  
  public double c(h paramh)
  {
    return ((b_)paramh.i.b).a;
  }
  
  public void g()
  {
    e();
  }
  
  public List h()
  {
    return this.c.a();
  }
  
  private static class b_
  {
    double a;
    int c;
    
    private b_(double paramDouble, int paramInt)
    {
      this.a = paramDouble;
      this.c = paramInt;
    }
    
    b_(double paramDouble, int paramInt, oc.0 param0)
    {
      this(paramDouble, paramInt);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.a.oc

 * JD-Core Version:    0.7.0.1

 */